using System;
using XmlStudio.DataLayer;

namespace XmlStudio.Models.Events {
    /// <summary>
    /// Event arguments for NodeRemoved event.
    /// </summary>
    /// <typeparam name="TNode">Type of the node.</typeparam>
    public class NodeRemovedEventArgs<TNode> : EventArgs
        where TNode : BigXmlNode {

        /// <summary>
        /// Gets the node to remove.
        /// </summary>
        public TNode RemovedNode { get; private set; }

        /// <summary>
        /// Initializes a new instance of the <see cref="NodeRemovedEventArgs{TNode}"/> class.
        /// </summary>
        /// <param name="removedNode">Node to remove.</param>
        public NodeRemovedEventArgs(TNode removedNode) {
            this.RemovedNode = removedNode;
        }
    }
}